<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>stapes例子04</title>
    <script type="text/javascript" src="../lib/stapes-0.8.1/stapes.js"></script>
</head>
<body>
    <h1>你好!!!</h1>

    <script type="text/javascript">

        var Module = Stapes.subclass({
            sayName : function() {
                console.log('i say my name!');
            }
        });

        var BetterModule = Module.subclass({
            // Note that this method name is the same as the one in Module
            sayName : function() {
                BetterModule.parent.sayName.apply(this, arguments);
                console.log('i say my name better');
            }
        });

        var module = new BetterModule();
        module.sayName(); // 'i say my name! i say my name better!'

    </script>


</body>
</html>